import { Point } from "./Point.js";
import { Nullable } from "./types.js";

export class BlockPoint extends Point {
    #c: string;

    /**
     * @param x x coordinate
     * @param y y coordinate
     * @param c color
     */
    constructor(
        x: number = 0,
        y: number = 0,
        c: string = "c0"
    ) {
        super(x, y);
        this.#c = c;
    }

    get c(): string {
        return this.#c;
    }
}

export type NullableBlockPoint = Nullable<BlockPoint>;
